package com.sghj.utils.Validate.price;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author xrx
 * @Date 2022/3/7
 * @apiNote
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Constraint(validatedBy = {priceValidator.class})
public @interface Price {
    String message()

    default "价格格式不规范";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
